package com.cssnj.portal.domain.user;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import javax.transaction.Transactional;

public interface GlYhGnPjRepository extends JpaRepository<GlYhGnPjEntity, GlYhGnPjEntityPK> {
    @Modifying
    @Transactional
    @Query("delete from GlYhGnPjEntity T where T.gnId = :GN_ID and T.swrysfDm = :SWRYSF_DM")
    void deleteByPK(@Param("GN_ID") String gnid, @Param("SWRYSF_DM") String swrysfdm);
}
